<?php
/*
 * MY_Loader
 * Override the CI Loder in order to make the whole system theamable
 *
 * 重写CI Loader使系统支持皮肤功能
 *
 * Created on 2012-7-4
 *
 */
 class MY_Loader extends CI_Loader{
 	public $theme = 'default';
 	function __construct(){
 		parent::__construct();
 	}
 	/*
 	 * 开启皮肤功能
 	 * access public
 	 * return void
 	 */
	function switch_theam_on(){
		$this->_ci_view_paths =  array(FCPATH . OB_THEMES_DIR . DIRECTORY_SEPARATOR . $this->theme . DIRECTORY_SEPARATOR => TRUE);
	}
 	/*
 	 * 关闭皮肤功能
 	 * access public
 	 * return void
 	 */
	function switch_theam_off(){
		$this->_ci_view_paths =  array(APPPATH.'views/'	=> TRUE);
	}
 }
?>
